package com.boomsecret.pattern.singleton;

/**
 * Created by wangjinliang on 2018/1/17.
 */
public class EnhanceLazySingletonPattern {

    static class EnhanceLazySingletonPatternHolder {
        static EnhanceLazySingletonPattern INSTANCE = new EnhanceLazySingletonPattern();
    }

    public static EnhanceLazySingletonPattern getInstance() {
        return EnhanceLazySingletonPatternHolder.INSTANCE;
    }

    public void invokeMethod() {
        System.out.println("LazySingletonPattern invokeMethod");
    }
}
